package com.hu.mapper;

import com.hu.pojo.Music;
import com.hu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//这个注解表明是mybatis的mapper类:Dao层
@Mapper
@Repository
public interface UserMapping {
    int addUser(User user);
    int deleteUser(Integer id);
    int updateUser(User user);
    User quaryById(Integer id);
    User quaryByUserName(String username);
    List<User> quaryAll();
}
